{if !$bNoPics}
<form method="post" action="{url link='public.gallery.rate' id=$aItem.id}">
    <div style="text-align:center;">
        <span style="vertical-align:middle;">
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="1" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#9dd8ff;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#9dd8ff';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="2" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#b3e6ff;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#b3e6ff';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="3" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#caf7ff;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#caf7ff';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="4" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#e4ffff;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#e4ffff';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="5" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#f7ffff;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#f7ffff';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="6" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#ffe7e6;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#ffe7e6';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="7" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#ffbdbc;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#ffbdbc';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="8" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#ffa4a5;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#ffa4a5';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="9" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#ff5b5c;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#ff5b5c';" />
            <input type="submit"{if $bRated} onClick="alert('{language text="sorry_you_have_already_rated_this_p"}'); return false;"{/if} name="rating" value="10" style="padding-left:5px;padding-right:5px;margin-left:2px;background:#fa2225;cursor:pointer;color:#000;font-weight:bold;"  onmouseover="this.style.backgroundColor='#c0c0c0';" onmouseout="this.style.backgroundColor='#fa2225';" />
        </span>
        <a href="{url link='public.gallery.rate' page=$iNextPage}">
            <img alt="" src="{$sStylePath}button_fw.gif" style="vertical-align:middle;" onmouseover="showInfo2('Next Pic');" onmouseout="return nd();" />
        </a>
    </div>
</form>
<div style="text-align:center;" class="color">
<br />
{img src="`$sActualImage`" src_def="design/pic/noimage_120.jpg" max_width="500" max_height="500"}
<br />
<span style="padding-left:10px;">
    <a class="link_action" href="{url link='public.gallery.view' id=$aItem.id}#comment">[ {language text="leave_a_comment"} ]</a>&nbsp;<a class="link_action" href="{url link='public.user.gallery' name=$aItem.user}">[ {language text="view_gallery"} ]</a>
</span>
<br /><br />
<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;text-align:left;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{$aItem.text|default:'Untitled'}</td>
                </tr>
            </table>
            <table style="width:100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="vertical-align:middle;font-size:8pt;width:60%;text-align:left;" class="color">
                        <div style="padding-left:8px;">
                            <div style="padding-top:4px;"><b>{language text="views"}</b>: {$aItem.view}</div>
                            <div style="padding-top:4px;"><b>{language text="comments_67"}</b>: {$aItem.comment}</div>
                            <div style="padding-top:4px;"><b>{language text="rating"}</b>: {$aItem.rating}</div>
                        </div>
                    </td>
                    <td style="width:40%;text-align:center;vertical-align:middle;">
                        <div style="padding-bottom:5px;">
                            <a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a>
                        </div>
                        <a href="{url link='public.user' name=$aItem.user}">
                            {Account::Avatar sUser=$aItem.user iSize=75 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                        </a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</div>
{else}
		<div style="padding:30px;font-size:10pt;" class="color">
        <div class="message_info">
		{language text="there_are_no_images_yet"}
        </div>
		<div style="padding:15px;">
		  <a href="{url link='public.account.submit.upload-pic'}">[ {language text="upload_your_pic_now"} ]</a>
		</div>
		</div>
		<br /><br /><br /><br />
{/if}